package com.ljj.listener;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName MyListener
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/3 14:02
 * @Version 1.0
 */
@Component
public class MyListener {
    @RabbitListener(queues="item_queue")
    public void myListener1(String message){
        System.out.println("消费者接收到的消息"+message);
    }
}
